//买家订单中心 组件 头部 无路由页面
const Header = resolve => {
    require.ensure(['components/Header.vue'], () => {
        resolve(require('components/Header.vue'));
    }, 'Home');
};
//买家订单中心 父组件 无实际显示路由页面
const BuyerCenter = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/buyerCenter/BuyerCenter.vue'));
    }, 'buyerCenter');
}

// const BuyerCenterMain = resolve => {
//     require.ensure([], () => {
//         resolve(require('components/my/buyerCenter/BuyerCenterMain.vue'));
//     }, 'buyerCenter');
// }

// const PcMobGame = resolve => {
//     require.ensure([], () => {
//         resolve(require('components/my/buyerCenter/PcMobGame.vue'));
//     }, 'buyerCenter');
// }

// const BuyerPc = resolve => {
//     require.ensure([], () => {
//         resolve(require('components/my/buyerCenter/BuyerPc.vue'));
//     }, 'buyerCenter');
// }
//买家订单中心 买家订单详情页面
const BuyerOrder = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/buyerCenter/BuyerOrder.vue'));
    }, 'buyerCenter');
}
//买家订单中心 游戏币订单有替换 弃用
const BuyerMobCoinOrder = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/buyerCenter/BuyerMobCoinOrder.vue'));
  }, 'buyerCenter-other');
}
const BuyerPcCoinOrder = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/buyerCenter/BuyerPcCoinOrder.vue'));
  }, 'buyerCenter');
}
// const BuyerMob = resolve => {
//     require.ensure([], () => {
//         resolve(require('components/my/buyerCenter/BuyerMob.vue'));
//     }, 'buyerCenter');
// }

//买家订单中心 获取账号资料接口
const GetAccount = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/buyerCenter/GetAccount.vue'));
    }, 'buyerCenter');
}
//买家订单中心 云验号
const CloudCheck = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/buyerCenter/CloudCheck.vue'));
    }, 'buyerCenter');
}

//买家订单中心 我的订单
const BuyOrderList = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/buyerCenter/BuyOrderList.vue'));
    }, 'buyerCenter');
}


export const buyerCenterRoute =

{
    path: '/vue/buyerCenter',
    components: {
      default: BuyerCenter,
    },
    children: [
        // {
        //     path: 'buyerCenterMain',
        //     name:'buyerCenterMain',
        //     components: {
        //         default: BuyerCenterMain
        //     }
        // },
        // {
        //     path: 'pcMobGame/:status',
        //     name:'pcMobGame',
        //     components: {
        //         default: PcMobGame
        //     }
        // // },
        // {
        //     path: 'buyerPc/:status',
        //     name:'buyerPc',
        //     components: {
        //         default: BuyerPc,
        //     }
        // },
        {
            path: 'buyerOrder/:type/:orderId',
            name:'buyerOrder',
            components: {
                default: BuyerOrder
            }
        },
        {
            path: 'buyerMobCoinOrder/:orderId',
            name:'buyerMobCoinOrder',
            components: {
                default: BuyerMobCoinOrder
            }
        },
        {
            path: 'buyerPcCoinOrder/:orderId',
            name:'buyerPcCoinOrder',
            components: {
                default: BuyerPcCoinOrder
            }
        },
        {
            path: 'buyerOrder/:type/:orderId/:fast',
            name:'fastOrder',
            components: {
                default: BuyerOrder
            }
        },
        // {
        //     path: 'buyerMob/:status',
        //     name:'buyerMob',
        //     components: {
        //         default: BuyerMob
        //     }
        // },
        {
            path: 'getAccount/:type/:orderId',
            name:'getAccount',
            components: {
                default: GetAccount,
            }
        },
        {
            path: 'cloudCheck',
            name:'cloudCheck',
            components: {
                default: CloudCheck,
                // 'buyerCenter-header': Header
            }
        },
        {
            path: 'buyOrderList/:status',
            name:'buyOrderList',
            components: {
                default: BuyOrderList,
                // 'buyerCenter-header': Header
            }
        },
    ],
    meta: {isPublish: true, requireAuth: true}
};
